package com.ruoyi.business.order.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.business.base.JoBaseEntity;
import lombok.Data;

/**
 * 回款对象 jb_payment_received
 *
 * @author ruoyi
 * @date 2024-10-11
 */
@Data
public class JbPaymentReceived extends JoBaseEntity
{
    private static final long serialVersionUID = 1L;

    /**
     * 客户ID
     */
    @Excel(name = "客户ID")
    private Long customerId;

    /**
     * 客户姓名
     */
    @Excel(name = "客户姓名")
    private String customerName;

    /**
     * 回款编号
     */
    @Excel(name = "回款编号")
    private String paymentNumber;
    /**
     * 流程编码
     */
    private String processNumber;

    /**
     * 关联订单
     */
    @Excel(name = "关联订单")
    private String relatedOrder;

    /**
     * 类型（定金，回款）
     */
    @Excel(name = "类型", readConverterExp = "定金，回款")
    private String type;

    /**
     * 回款金额
     */
    @Excel(name = "回款金额")
    private BigDecimal paymentAmount;

    /**
     * 回款日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "回款日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paymentDate;

    /**
     * 付款方式
     */
    @Excel(name = "付款方式")
    private String paymentMethod;

    /**
     * 回款截图（多个用，拼接）
     */
    @Excel(name = "回款截图", readConverterExp = "多=个用，拼接")
    private String paymentScreenshot;

    /**
     * 回款备注
     */
    @Excel(name = "回款备注")
    private String paymentRemark;

    /**
     * 通知人员（员工ID），多个人逗号
     */
    @Excel(name = "通知人员", readConverterExp = "员=工ID")
    private String notifiedEmployeeId;

    /**
     * 审批状态
     */
    @Excel(name = "审批状态")
    private String status;

    /**
     * 提交时间（回款登记时间）
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提交时间", readConverterExp = "回=款登记时间")
    private Date submissionTime;

    /**
     * 审批时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date approvalTime;

    /**
     * 审批备注
     */
    @Excel(name = "审批备注")
    private String approvalRemark;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;

}
